import { ApiProperty } from '@nestjs/swagger';
import { IsInt, IsString } from 'class-validator';

export class AppUserQueryDto {
  @ApiProperty()
  @IsInt()
  id: number;
}

export class AppUserQueryByDeviceDto {
  @ApiProperty()
  @IsString()
  deviceId: string;
}

export class AppUserReadStatisticsQueryDto {
  @ApiProperty({ description: '今日' })
  @IsInt()
  today: number;

  @ApiProperty({ description: '总' })
  @IsInt()
  total: number;
}
